﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace SgpaServer.Model
{
    public abstract partial class BaseEntity
    {
        /// <summary>
        /// 实体Id
        /// </summary>
        public long Id { get; set; }
        [MaxLength(-1)]
        public string InputUser { get; set; }
        [MaxLength(-1)]
        public string MacOrIp { get; set; }
        /// <summary>
        /// 实体Guid
        /// </summary>
        public Guid EntityGuid { get; set; }
        public DateTime CreateTimeUtc { get; set; }

        public long Version { get; set; }

        public bool Deleted { get; set; }

        public BaseEntity()
        {
            EntityGuid = Guid.NewGuid();
            CreateTimeUtc = DateTime.UtcNow;
            InputUser = "";
            MacOrIp = "";
            Deleted = false;
        }
    }
}
